﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marbles.Core.Web.MVC.Views
{
    public class ViewInitialiseEventArgs : EventArgs
    {

        public bool FirstRequest { get { return this._FirstRequest; } }
        public bool AsyncronousRequest { get { return this._IsAsyncronous; } }
        public bool CallbackRequest { get { return this._CallbackRequest; } }

        private bool _FirstRequest = false;
        private bool _IsAsyncronous = false;
        private bool _CallbackRequest = false;

        public ViewInitialiseEventArgs(bool IsPostback, bool IsAsyncronous, bool CallbackRequest)
        {
            this._IsAsyncronous = IsAsyncronous;
            this._FirstRequest = !IsPostback;
            this._CallbackRequest = CallbackRequest;
        }
    }
}
